Release 10.1A: OpenEdge Development:
ADM and SmartObjects
Support include files
As noted in Chapter 1, "Overview," a SmartObject template generally includes a single support include file: the primary include file for the class on which the SmartObject is based. This include file has the same name as the template (but a different extension). For example, the SmartDataViewer template
viewer.wincludes the primary include fileviewer.i. A primary include file such asviewer.idoes not directly contain most of the code needed to support the SmartObject. It contains only those program elements required to compile a master built from that template:
- Any variable or other definitions needed by all masters of that type.
- A reference to the next support include file up the chain (for example, a SmartDataViewer is a visual object that displays data, so it includes
datavis.i; if there is no other intermediate object above this type, it includessmart.i), and its own property include file, which defines those properties stored in the ADMProps temp-table for the object.- Initialization code in the main block for this object type’s properties and any other generic object startup code.
- Any routine that requires compile-time resolution of preprocessors or for some other reason must be part of the master’s compilation unit (
.rfile).
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |